home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FCE Gold Plus
/
GOLD.iso
/
pc
/
fscommand
/
Xtras
/
FileXtra4_test.dir
/
00024_Script_FileSaveAs behavior
< prev
next >
Wrap
Text File
|
2002-12-20
|
793b
|
30 lines
-- *** NOTE ***
-- 'FileSaveAsDialog()' DOES NOT SAVE A FILE!!!
-- It ONLY puts up a dialog, allowing the user to pick a path and enter a filename.
-- The rest is UP TO YOU!!!
on mouseUp me
fxObj = xtra("FileXtra4").new()
if not(objectP(fxObj)) then
WriteInfo("*** Could not instantiate FileXtra4. Is it in the Xtras folder? ***" & RETURN)
return
end if
volumeList = fxObj.fx_VolumesToList()
volumeToUse = volumeList.getAt(1)
if the platform contains "Mac" then
filePath = fxObj.fx_FileSaveAsDialog(volumeToUse, "Test Filename.doc", "Choose a Folder, type a name")
else
end if
if filePath <> "" then
Alert "File path entered is: " & filePath
else
alert "SaveAs dialog cancelled."
end if
fxObj = 0
end